Originally posted by sonhouse
Well my calculator says 45967/280 covers the 164.1678571 part exactly but it misses out on the actual repeaters, the 428571's that repeat forever.
How did you suss out that fraction anyway? You have fraction sniffing software?
When you see something in an equation in the form of a decimal just convert it to it's fractional equivalent (do this for all terms). Then just simplify and solve.
i.e. (K-273.15)*1.8 +32 = +/-K becomes
((100K - 27315)/100)(9/5) + 32 = +/-K
==> 9(20K - 5463) +3200 = +/-100K
==> 180 +/- 100K = 49167 - 3200
==> K = 45967/(180 +/- 100)
Also, when you see a recuring decimal, you can quickly convert to its exact fractional form, by expressing it as a sum of the repeating and non repeating parts (where the repeating part can be written as x/D(x) where x is the repeated term, and D(x) is 10^(number of digits in x) -1. i.e. with x = 123 then 0.123123123123 = 123/(D(123)) = 123/999
This works because if (relabeling x)
[1] x = f + bar(y) (f is some fraction, y a repeated term in the decimal part) then
(10^d)x = (10^d)f + y + bar(y) (d is the number of digits in y)
==> (10^d - 1)x = (10^d - 1)f + y (subtracting [1])
==> x = f +y/(10^d - 1)